package code.vo {

import mx.collections.ArrayCollection;
	

[Bindable]
public class Category {
	
	public var categoryId: int;
	public var title: String;
	
	public var yetVoted: Boolean = false; // hack for AdvanceDataGrid
	
	public var topics: ArrayCollection = new ArrayCollection();
	
	public function Category(categoryId: int, title: String) {
		this.categoryId = categoryId
		this.title = title;
	}

	public static function newByXml(o: Object): Category {
		return new Category(int(o.CategoryId), String(o.Title));
	}
	
}
}